package com.t4.courseware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.t4.courseware.common.Result;
import com.t4.courseware.model.WXAuth;
import com.t4.courseware.pojo.User;
import com.t4.courseware.pojo.dto.UserDto;
import org.springframework.web.multipart.MultipartFile;

public interface UserService extends IService<User> {
    String getSessionId(String code);

    UserDto login(UserDto userDto);

    Result register(UserDto userDto);

    Result authLogin(WXAuth wxAuth);

    Result userinfo(Boolean refresh);

    Result updateUser(UserDto userDto);

    Result uploadAvatar(MultipartFile multipartFile);
}
